<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    console.log("我叫'张三'");
    console.log('我叫"张三"');
    console.log("我叫\"张三\"");
    let uname=prompt("请输入你的名字");
    let age=prompt("请输入你的年龄");
    // 字符串拼接
    document.write("我叫" + uname + "，我今年" + age + "岁");
    // 模板字符串
    document.write(`我叫${uname}，我今年${age}岁`);
  </script>
</body>
</html>